package cn.bonoon.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.bonoon.kernel.support.entities.AbstractPersistable;

/**
 * 被导入的数据，可以在这一次的导入的时候上传多份(证明)材料，如果需要！
 * @author jackson
 *
 */
@Entity
@Table(name = "t_rdtimaterial", catalog = "db_rawdata")
public class RawdataImportMaterial extends AbstractPersistable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -7943203439906945041L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "R_SUBJECT_ID")
	private RawdataImportEntity subject;

	@Column(name = "C_NAME", length = 200)
	private String name;
	@Column(name = "C_PATH", length = 512)
	private String path;
	
	/**
	 * 是否删除
	 */
	@Column(name = "C_DELETED")
	private boolean deleted;
	
	public RawdataImportEntity getSubject() {
		return subject;
	}
	public void setSubject(RawdataImportEntity subject) {
		this.subject = subject;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public boolean isDeleted() {
		return deleted;
	}
	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}
	
}
